
<%@ page import="duylinh.CongNghe" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'congNghe.label', default: 'CongNghe')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#list-congNghe" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li>
                    <g:link class="create" action="createEditCongNghe">
                        <g:message code="default.new.congNghe.label"  />
                    </g:link>
                </li>
			</ul>
		</div>


		<div id="list-congNghe" class="content scaffold-list" role="main">

			<div class="marginLeftLarge marginTopLarge marginBottomLarge quoteBig">
                <g:message code="default.list.congNghe.label" args="[entityName]" />
            </div>

			<g:if test="${flash.message}">
			    <div class="message" role="status">${flash.message}</div>
			</g:if>
			<table>
				<thead>
					<tr>
					
						<g:sortableColumn property="dateCreated" title="${message(code: 'congNghe.ten.label', default: 'Date Created')}" />

						<g:sortableColumn property="sanluongTB" title="${message(code: 'congNghe.sanluongTB.label', default: 'Sanluong TB')}" />

                        <g:sortableColumn property="dinhMucSP" title="${message(code: 'congNghe.dinhMucSP.label', default: 'Dinh Muc SP')}" />

                        <th>
                            <g:message code="sanPham.thaoTac.label"></g:message>
                        </th>

                    </tr>
				</thead>
				<tbody>
				<g:each in="${congNgheInstanceList}" status="i" var="congNgheInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
					
						<td>
                            <g:link action="show" id="${congNgheInstance.id}">
                                ${fieldValue(bean: congNgheInstance, field: "ten")}
                            </g:link>
                        </td>

						<td>
                            ${fieldValue(bean: congNgheInstance, field: "sanluongTB")}
                            ${fieldValue(bean: congNgheInstance, field: "sanluongTBDv")}
                        </td>

                        <td>
                            ${fieldValue(bean: congNgheInstance, field: "dinhMucSP")}
                            ${fieldValue(bean: congNgheInstance, field: "dinhmucSPDonvi")} / 1 Kg
                        </td>

                        <td>
                            <g:link action = "createEditCongNghe" params="['congNgheId':congNgheInstance.id]">
                                <g:message code="default.button.edit.label"></g:message>
                            </g:link>
                        </td>

                    </tr>
				</g:each>
				</tbody>
			</table>
			<div class="pagination">
				<g:paginate total="${congNgheInstanceTotal}" />
			</div>
		</div>
	</body>
</html>
